package com.rui.service;

import com.rui.entity.Student;

import java.util.List;

/**
 * Created by Administrator on 2017/4/12.
 */
public interface StudentService {

    void add(Student student);

    void delete(Integer id);

    void update(Student student);

    Student findOne(Integer id);

    List<Student> findStudents(String realName,Integer pageSize,Integer pageIndex);

    Integer findTotalPage(String realName,Integer pageSize);

    Student findByUserName(String userName);

    List<Student> findStudents(String userName,Integer id);
}
